#ifndef __WORKTHREAD_H
#define __WORKTHREAD_H

#include "Thread.hpp"
#include "ThreadPool.hpp"

namespace tp{

class WorkThread
:public Thread
{
public:
    WorkThread(ThreadPool &t)
    :_threadpool(t)
    {

    }

private:
    void run() override{
        _threadpool.doTask();
    }

private:
   ThreadPool & _threadpool; 
};

}//end of namespace tp


#endif

